package ext.generic.doc.processors;

import java.util.List;

import wt.util.WTException;

import com.ptc.core.components.forms.DefaultObjectFormProcessor;
import com.ptc.core.components.forms.FormResult;
import com.ptc.netmarkets.util.beans.NmCommandBean;

import ext.generic.part.GenericPartManagementHelper;
/**
 * 普通类文档关联零部件的方法类(文档中添加"关联零部件")
 */
public class GenericDocPartDescAddRelationFormProcessor extends DefaultObjectFormProcessor
{
    public GenericDocPartDescAddRelationFormProcessor()
    {
    }
    /**
     *关联的具体方法
     * @param nmcommandbean
     * @param list
     * @return
     * @throws WTException
     */
    public FormResult doOperation(NmCommandBean nmcommandbean, List list)
        throws WTException
    {
        FormResult formresult = GenericPartManagementHelper.addRelationDocPart(nmcommandbean, false);
        super.doOperation(nmcommandbean, list);
        return formresult;
    }
}
